package org.acompanhamento;

import bancosys.tec.exception.LocalizedMessageHolder;
import bancosys.tec.exception.MessageCreator;
import bancosys.tec.exception.MessageCreatorHelper;


/**
 * Mensagens de Help das paginas
 */
public enum CoreAppMessages implements MessageCreator {

	INITIAL_STATUS_NOT_FOUND(0, "org.acompanhamento.itial.status.not.found"),

	STATUS_WITH_OUT_TRANSICTION(1, "org.acompanhamento.status.with.out.transiction");

	private final MessageCreator delegate;

	/**
	 * Construtor
	 * 
	 * @param nargs nargs
	 * @param key key
	 */
	private CoreAppMessages(int nargs, String key) {
		this.delegate = MessageCreatorHelper.creator("core-app-messages", key, nargs);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public LocalizedMessageHolder create(Object... arguments) {
		return this.delegate.create(arguments);
	}

	/**
	 * {@inheritDoc}
	 */
	@Override
	public int getExpectedArguments() {
		return this.delegate.getExpectedArguments();
	}

}
